# == Defined type: ceph::osd_disk
#
#
define ceph::osd_disk (
  $disk,
) {
  exec { "Ceph create osd for ${disk}":
    command => "/usr/sbin/ceph-disk-prepare --cluster ceph --cluster-uuid ${ceph::fsid} --fs-type xfs ${disk} && /usr/sbin/ceph-disk-activate ${disk}1",
    unless  => [
      "/usr/bin/test -b ${disk}1",
      "/usr/bin/test -b ${disk}2",
    ],
  }
}
